package com.coding365.service.user.service;

import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletResponse;

public interface UserService {

    Boolean register(String email,
                     String password,
                     String code,
                     HttpServletResponse response);

    Boolean isRegistered(@PathVariable String email);

    Boolean login(String email,String password,HttpServletResponse response);


    String getUserInfo(String token);
}
